notebook: Implement rtl flipping for CSS nodes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 Jan 2016 02:38:30 +0000 (21:38 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 20 Jan 2016 02:40:47 +0000 (21:40 -0500)
commitbb92428112b1b6ee4fae639e5190608c437c24b5
tree765889c0eb986991a9468022d7c1156860a3948e
parent0304817d8147d452eb7a5738db200306678218a4
notebook: Implement rtl flipping for CSS nodes

Use gtk_box_gadget_reverse_children and gtk_css_node_reverse_children
to flip the children of the header_gadget and the tabs_gadget when
appropriate.

Add new CSS node tests to verify that the node order is updated
as expected in all cases.
26 files changed:
gtk/gtknotebook.c
testsuite/css/nodes/Makefile.am
testsuite/css/nodes/notebook.bottom.ltr.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.bottom.ltr.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.bottom.nodes [deleted file]
testsuite/css/nodes/notebook.bottom.rtl.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.bottom.rtl.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.bottom.ui [deleted file]
testsuite/css/nodes/notebook.left.ltr.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.left.ltr.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.left.nodes [deleted file]
testsuite/css/nodes/notebook.left.rtl.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.left.rtl.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.left.ui [deleted file]
testsuite/css/nodes/notebook.right.ltr.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.right.ltr.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.right.nodes [deleted file]
testsuite/css/nodes/notebook.right.rtl.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.right.rtl.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.right.ui [deleted file]
testsuite/css/nodes/notebook.top.ltr.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.top.ltr.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.top.nodes [deleted file]
testsuite/css/nodes/notebook.top.rtl.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.top.rtl.ui [new file with mode: 0644]
testsuite/css/nodes/notebook.top.ui [deleted file]